package com.nuoniu.sibanyun.mapper.work;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.work.WorkPlanSummary;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 工作计划总结 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-08-19
 */
public interface WorkPlanSummaryMapper extends BaseMapper<WorkPlanSummary> {


    @Update("update oa_workplan_summary set status=0, submit_id=null, submit_name='', submit_date=null, cc_id='', cc_name='' where id = #{id}")
    void returnPlan(WorkPlanSummary workPlanSummary);

    Page<WorkPlanSummary> pageList(Page pages, @Param("summary") WorkPlanSummary planSummary);
}
